/*
 * common.h
 * Public common elements for shift register, 4bit and 8bit implementations
 *
 *  Created on: Sep 27, 2009
 *      Author: Orlando Arias
 *	   License: GPLv3
 *
 *   libHD44780 for Arduino systems
 *   Copyright (C) 2009  Orlando Arias
 *
 *   This program is free software: you can redistribute it and/or modify
 *   it under the terms of the GNU General Public License as published by
 *   the Free Software Foundation, either version 3 of the License, or
 *   (at your option) any later version.
 *
 *   This program is distributed in the hope that it will be useful,
 *   but WITHOUT ANY WARRANTY; without even the implied warranty of
 *   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 *   GNU General Public License for more details.
 *
 *   You should have received a copy of the GNU General Public License
 *   along with this program.  If not, see <http://www.gnu.org/licenses/>.
 */

#ifndef COMMON_H_
#define COMMON_H_

#include <inttypes.h>

typedef enum _command {
	BLANK_DISPLAY		=0x08,
	CLEAR				=0x01,
	CURSOR_INVISIBLE	=0x0C,
	CURSOR_VISIBLE_BB	=0x0F,
	CURSOR_VISIBLE_UL	=0x0E,
	EM_DECREMENT_OFF	=0x04,
	EM_DECREMENT_ON		=0x05,
	EM_INCREMENT_OFF	=0x06,
	EM_INCREMENT_ON		=0x07,
	MOVE_HOME			=0x02,
	MOVE_LEFT			=0x10,
	MOVE_RIGHT			=0x14,
	RESTORE_DISPLAY		=0x0C,
	SCROLL_LEFT			=0x18,
	SCROLL_RIGHT		=0x1E,
	SET_POSITION		=0x80,
} command;

#endif /* COMMON_H_ */
